#ifndef SIGINT_HANDLER_H_
#define SIGINT_HANDLER_H_

#include <signal.h>
#include <assert.h>
#include "EventHandler.h"

class SIGINT_Handler : public EventHandler {

private:
	bool quitFlag;

public:
	SIGINT_Handler() {
		this->quitFlag = false;
	}

	virtual int handleSignal(int signum) {
		// assert(signum == SIGINT);
		this->quitFlag = true;
		return 0;
	}

	bool quit() {
		return this->quitFlag;
	}
};

#endif /* SIGINT_HANDLER_H_ */
